#!/usr/bin/env bash
# @sys: centos7.x+
# @date: Thu Sep  9 20:03:32 CST 2021
# @author: hflxhn
# @email: hflxhn@163.com
# @info: check cmd
# @run: ./check.sh

function check() {
    if [[ $? == 0 ]]; then
        echo -e "\033[32m${1} --------> success\033[0m";
    else
        echo -e "\033[31m${1} --------> fail\033[0m";
        exit 1;
    fi
}
